<?php
namespace app\model\merchant;

use think\Model;

class ConfigModel extends Model
{
    protected $name = 'config';

    /**
     * 获取配置
     * 
     * @return array
     */
    public static function getConfigValue($key)
    {
        $info = ConfigModel::where(['key' => $key])->value('value');
        $data = json_decode($info, true);
        return $data;
    }
}